package com.youkeda.yikao.web.dataobject;

import com.youkeda.yikao.web.validator.EmailCode;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @date 2019/11/05
 */
public class ZhangyankunSpringUser implements Serializable {
    /**
     * 邮箱
     */
    @NotBlank(message = "必须输入邮箱")
    @EmailCode(message = "验证码错误")
    private String email;

    /**
     * 用户名
     */
    @NotBlank(message = "必须输入昵称")
    private String name;

    /**
     * 密码
     */
    @Min(value = 6)
    private String psd;


    /**
     * 个性域名
     */
    @NotBlank(message = "必须输入域名")
    private String domain;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPsd() {
        return psd;
    }

    public void setPsd(String psd) {
        this.psd = psd;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }
}